using System.Windows.Media;

namespace LegoBotPrimaUI
{
    public static class UiUtil
    {
        private static readonly ColorConverter _colorConverter = new ColorConverter();

        public static Color ToColor(string hex)
        {
            return (Color)_colorConverter.ConvertFrom(hex);
        }
    }
}